<%@ page language="java" contentType="text/html; charset=utf-8"   pageEncoding="utf-8"%>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
	<tr>
		<td width="50%">
			共${page.totalCount}条纪录，当前第${page.pageNo}/${page.totalPages}页，每页${page.pageSize}条纪录
		</td>
		<td align="right">
			<s:if test="page.hasPre"><a href="javascript:jumpPage(${page.prePage})">上一页</a></s:if>
			<s:else>上一页</s:else>
			<s:if test="page.hasNext"><a href="javascript:jumpPage(${page.nextPage})">下一页</a></s:if>
			<s:else>下一页</s:else>
			转到第<input type="text" size="2" id="pageNo" name="page.pageNo"/>页<input type="button" name="search" value="-> 转" onclick="jumpPage(-1)"/>
		</td>
	</tr>
</table>
<script type="text/javascript">
function jumpPage(pageNo){
	var form = document.forms[0];
	if(pageNo == -1){
		pageNo = form["pageNo"].value;
		var reg = /^([1-9][0-9]*)$/;	
		if(!reg.test(pageNo)){
			alert("请输入正整数的页码 ！");
			return false;
		}
	}
	document.getElementById("pageNo").value = pageNo;
	form.submit();
}
</script>